バージョン

AddCollectionChange<TItem>(ICollection<TItem>,TItem,Int32,Int32,String) メソッド

指定された置換コレクションの変更の UndoUnit を、元に戻す履歴に追加します。
シンタックス
'宣言
 
Public Overloads Function AddCollectionChange(Of TItem)( _
   ByVal collection As ICollection(Of TItem), _
   ByVal item As TItem, _
   ByVal oldIndex As Integer, _
   ByVal newIndex As Integer, _
   Optional ByVal itemTypeDisplayName As String _
) As UndoUnit
public UndoUnit AddCollectionChange<TItem>( 
   ICollection<TItem> collection,
   TItem item,
   int oldIndex,
   int newIndex,
   string itemTypeDisplayName
)

パラメータ

collection
変更されたコレクション。
item
移動された項目。
oldIndex
項目の以前のインデックス。
newIndex
項目の新しいインデックス。
itemTypeDisplayName
エンドユーザーに提示される通りのコレクション内の項目のタイプを表す文字列、またはタイプ名と項目の両方またはいずれか一方を使用するためには null。

型パラメータ

TItem
項目のタイプ

戻り値の型

追加された UndoUnit を返します。またはこれが追加されなかった場合は null を返します
参照